package com.hy;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: hy
 * @Date: 2019/10/19
 * @Description:
 */
//@Configuration
public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext aca = new AnnotationConfigApplicationContext(Test.class);
        Test test = (Test)aca.getBean("test");
        System.out.println(test);
    }
}
